import Layout from "@/layout/basic-layout/index.vue";
import {MENU} from "@/enums/menu_enum";
import {RouteRecordRaw} from "vue-router";

const generalRoute:RouteRecordRaw[] = [
    {
        path: '/',
        redirect: {name:"Home"},
        component: Layout,
        meta:{title:"首页", menuType: MENU.FOLDER},
        children: [
            {
                path: 'home',
                name: 'Home',
                meta:{title:"首页", menuType: MENU.FILE},
                component: () => import('@/views/Home.vue'),
            },
            {
                path: 'config',
                name: 'Config',
                meta:{title:"配置", menuType: MENU.FILE},
                component: () => import('@/views/HelloWorld.vue'),
            },
            {
                path: 'christmas',
                name: 'Christmas',
                meta:{title:"圣诞节", menuType: MENU.FILE},
                component: () => import('@/views/festival/christmas/index_2021_12_25.vue'),
            },
        ],
    },
    {
        path: '/document',
        redirect: {name:"markdown"},
        component: Layout,
        meta:{title:"文档", menuType: MENU.FOLDER},
        children: [
            {
                path: 'markdown',
                name: 'markdown',
                meta:{title:"markdown", menuType: MENU.FILE},
                component: () => import('@/views/document/markdown/MarkdownDoc.vue'),
            },
            {
                path: 'render-file',
                name: 'render-file',
                meta:{title:"render-file", menuType: MENU.FILE},
                component: () => import('@/views/document/html-file/index.vue'),
            },
        ],
    },
]

export {generalRoute}